package com.future.admin.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.future.common.api.admin.entry.SysDict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName : SysDictMapper
 * @Author : lby
 * @Date: 2020/12/16 14:26
 * @Description :
 */
@Mapper
public interface SysDictMapper extends BaseMapper<SysDict> {

    /**
     * 分页数据
     */
    IPage<SysDict> pageDicts(IPage<SysDict> page, QueryWrapper<SysDict> queryWrapper, @Param("sysDict") SysDict sysDict);

    /**
     * 添加字典
     */
    Boolean saveDict(SysDict sysDict);

    /**
     * 修改字典
     */
    Boolean editDict(SysDict sysDict);

    /**
     * 删除字典
     */
    Boolean delDict(SysDict sysDict);
}
